﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>跟进历史管理</title>
    <!--freemarker引入模板文件 使用相对路径来引入的-->
    <#include "../common/link.ftl" >
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <!--页面头部-->
    <#include "../common/navbar.ftl" >
    <!--菜单回显 声明变量设置值-->
    <#assign currentMenu="customerTraceHistory"/>
    <!--菜单-->
    <#include "../common/menu.ftl" >
    <div class="content-wrapper">
        <section class="content-header">
            <h1>跟进历史</h1>
        </section>
        <section class="content">
            <div class="box">
                <!--高级查询--->
                <form class="form-inline" id="searchForm" action="/customerTraceHistory/list" method="post">
                    <input type="hidden" name="currentPage" id="currentPage" value="1">
                    <div class="form-group">
                        <label for="keyword">关键字:</label>
                        <input type="text" class="form-control" id="keyword" name="keyword"
                               value="${qo.keyword!}" placeholder="请输入姓名/电话">
                    </div>
                    <button id="btn_query" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span> 查询</button>
                </form>
                <!--编写内容-->
                <div class="box-body table-responsive no-padding ">

                    <table class="table table-hover table-bordered">
                        <tr>
                            <th>编号</th>
                            <th>姓名</th>
                            <th>跟进日期</th>
                            <th>跟进内容</th>
                            <th>跟进方式</th>
                            <th>跟进结果</th>
                            <th>录入人</th>
                        </tr>
                            <#list result.list as customerTraceHistory>
                                  <tr>
                                      <!--freemarker 如果取值时是空值 会报错-->
                                      <td>${customerTraceHistory_index+1}</td>
                                      <td>${customerTraceHistory.customer.name!}</td>
                                      <td>${customerTraceHistory.traceTime?string('yyyy-MM-dd')!}</td>
                                      <td>${customerTraceHistory.traceDetails!}</td>
                                      <td>${(customerTraceHistory.traceType.title)!}</td>
                                      <td>${(customerTraceHistory.displayTraceResult)!}</td>
                                      <td>${(customerTraceHistory.inputUser.name)!}</td>
                                  </tr>
                            </#list>
                    </table>
                    <!--分页-->
                    <#include "../common/page.ftl">
                </div>
            </div>
        </section>
    </div>
     <#include "../common/footer.ftl">
</div>
</body>
</html>
